package com.hua.nailcampus.acl.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hua.nailcampus.acl.model.Approval;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:chenjianhua
 * @Date:2023/12/1 22:26
 * @Version 17
 */
@Data
public class ApprovalVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private String userName;
    private String phone;
    private String avaUrl;
    private Integer step;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date secondStepDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date thirdStepDate;
    private String reason;
    private String homeAddress;
    private String arrivalAddress;
    private String startTime;
    private String endTime;
    private String secondStepUserName;
    private String thirdStepUserName;
    private String homeCityName;
    private String homeProvinceName;
    private String arrivalCityName;
    private String arrivalProvinceName;
    private Integer result;
    public ApprovalVo(){

    }
    public ApprovalVo(Approval approval){
        this.phone = approval.getPhone();
        this.id = approval.getId();
        this.arrivalAddress = approval.getArrivalAddress();
        this.endTime = approval.getEndTime();
        this.createDate = approval.getCreateTime();
        this.reason = approval.getReason();
        this.homeAddress = approval.getHomeAddress();
        this.secondStepDate = approval.getSecondStepDate();
        this.startTime = approval.getStartTime();
        this.step = approval.getStep();
        this.thirdStepDate = approval.getThirdStepDate();
        this.result = approval.getResult();
    }

}
